#include <stdio.h>

int func(int x, int y) {
    int temp = 0;
    for(int i = x; i <= y; i++) {
        temp += i;
    }
    return temp;
}

int main() {

    int start = 1;
    int end = 100;
    int sum = func(start, end);
    printf("%d", sum);
    return 0;
}